inet_pton implementation for Win32