Fix -Wall -Wextra warnings on gcc and clang.