Implementation of inet_pton and inet_ntop by WSAAddressToStringA and
WSAStringToAddressA for Windows.
Conversion of IPv6 address might fail if IPv6 is
not installed.
Tested on Windows XP SP3 and Windows7.