Made it work on both ZMQ Version 2 and 3