fix numerous compiler warnings

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>