Fix a bug with std@resolve

Std@resolve doesn't work on some linux platforms (can't figure out which) (it's throwing an exception with neko_error())
It's caused by the use of the old gethostbyname method.

I've replaced gethostbyname with getaddrinfo, and tested it. It works successfully.

I'm not a C coder, so please tell me if there's something wrong with the diff, I'll fix it.