Update error RegExp to decrease false positives

Currently, things like "-Wno-error" give a false positive on possible
errors in the compilation process. This commit fixes this.