Use NI_MAXHOST rather than HOST_NAME_MAX for host lengths.
This constant is always available and meant to be used with getnameinfo().
This fixes the build on Debian GNU/kFreeBSD.