build: Use -Werror only for the check.