Fix unpack_sockaddr_in for older Socket versions

Socket versions below 2.005 don't support returning an address in scalar
context.
Use getaddrinfo instead of inet_pton

inet_pton isn't supported on some platforms.
Release version 3.01