Add a new compiler switch -verrors=num to control error report limit

Unlimited error report (`-verrors=0`) is useful for the fail_compilation tests.
limit the number of error messages (0 means unlimited)