fix getifaddrs on AIX
investigated the KAME ioctl interfaces and improved usage