Fix disabling IPV6_V6ONLY on sockets, issue #511