network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN