Fix AF_INET not being set for sockaddrs.