warnings: Fix a whole bunch of them

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