Add werror function to UserSettings.hs
This function makes it easy to turn on -Werror
in the correct manner
to mimic how CI turns on -Werror.
This is more important once !257 (merged) is merged as otherwise there will be frustrating CI failures which are not produced locally.