Use gnu version of strerror_r

Change-Id: I7f549cdff78e8b2804c4dcbd08c1819fbee1f16f
Reviewed-on: http://review.couchbase.org/43667
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>