m4: add Werror when checking for compiler flags