Minor comment tweak.
Use C++11's system_error facilities.

Changed `libcError()` to use C++11's `system_error` facilities to get a
much simpler, cleaner, thread-safe implementation.