Needs correct integer types, __EXTENSIONS__ include netdb.h for MAXHOSTNAMELEN and a patch to ensure NAME_MAX is defined