Fix std@resolve by replacing obsolete gethostbyname with getaddrinfo on linux platforms