unix: getnameinfo implementation for #852