configure: provide a cli flag instead of forcing -Werror