Given that we can't really recover from a "static" error in the regex constructors, this should
be fatal. Add support for this.
std::cerr is already pulled in, so remove the unnecessary namespace each time.