windows, unix: getnameinfo implementation for #852

Removed unused variables.
windows, unix: getnameinfo implementation for #852
windows, unix: getnameinfo implementation for #852
windows, unix: getnameinfo implementation for #852
windows, unix: getnameinfo implementation for #852