libc: add getifaddrs to run name resolver API for ruby
libc: add freeifaddrs() to name resolver API for ruby