inet_pton implementation compatible with Windows XP.