configure: Check for -Werror causing failures when compiling tests