Handle the GNU strerror_r() API

Partially fixes gh issue #2.