Equivalent of gethostbyname_r for Mac OS X?