fix gethostbyaddr_r to fill struct hostent.h_length as appropriate