Thrift: fix wrong strerror_r declaration on OS X

This is using the same check as Folly is doing in String.cpp