enable -Wall, -Wextra and -Werror and fix new errors (fixes #20)

4 jobs for feature/cpp_warnings in 41 seconds (queued for 1 second)