Clang: enable -Werror and fix code