fix gethostbyname_r types