add a wrapper to getaddrinfo() to workaround a bug in android's libc not supporting AI_V4MAPPED flag.