which now also takes a protocol address family argument.
implementation from lib/hostip6.c to lib/curl_addrinfo.c and prototypes from lib/hostip.h to lib/curl_addrinfo.h
Use a wrapper function to call system's getaddrinfo().