build: Enable -Wall and cleanup code

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