Support for XSI-compliant strerror_r

Signed-off-by: nixnodes <code@nixnodes.net>