Add an option for whether to compile with -Werror.