Build: Fix some more warnings

The merge of the sched branch introduced some more warnings. Not all of
them are fixed, as some are still being worked on in another branch,
those fixes will follow soon.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>