Check all -W flags with -Werror.

This is necessary as unknown flags are accepted by Clang, but issue a
warning and thus configure thinks they are accepted. However, with
-Werror later, the warning about the flag becomes an error and
compilation fails.