unix: define NI_MAXHOST and NI_MAXSERV if needed

OSX only exposes them if _POSIX_C_SOURCE is not defined, for instance.