Fix a few compiler warnings

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>