Add zero Optimization for debug
XXX HACK: fork() even for last message for debug purposes
Fix dh_getaddrinfo

There was multiple errors, first ai_canonname can't be sent through
socket if it's NULL, then hints required to be memset() to 0, and
res_init should use nvlist_xfer() not nvlist_send(), because it will
race.