socket-io.c: merge #ifdef HAVE_STRUCT_IP_MREQN of network interface index and address

This commit and the related commits 11b2e351d887ef439ac377bc8137ba409965a8fb and af9fc5f16f4358d016d73a82684beacabadfe10c) are under the MIT license.