use "-Werror" only with GCC. Thanks to Matthias Koeppe!