Windows XP fixes

fixed getgateways returning only the last of gateways
fixed pcp_inet_pton to work for IPv6 adresses too