Add tests for socklen_t and ip_mreq.