fix byte ordering in INADDR_LOOPBACK for ipv4