windows, unix: getnameinfo implementation for #852