unix, windows: add IPv6 support to uv_udp_set_membership

Reworked from initial version by @snoj