Fix warnings and compile with -Werror