hal: Fix compilation errors

Fix compilation errors for hal test apps

Change-Id: I7cc6b62a5722af8ccef58d242817970c223a5782
4 files changed