unix: getnameinfo implementation for #852

 Experimental fix for SunOS getnameinfo.