Fix detection of struct ip_mreq