Fix build for Mac.

- Various clang erros.
- Fix the build of the sysapps unit tests grabbing dependencies not
needed (they will be included elsewhere) and guard the one needed
behind a conditional check of Aura (Mac doesn't use Aura).
Merge pull request #1644 from darktears/mac-build-fix

Fix build for Mac.