Fix warnings.

Should be now compilable when run with -Wall -Wextra -Wpedantic
-Werror.