Fixed compilation for ZMQ v2 and v3

IPV6 doesn't exist prior to v4