Support for 0MQ 3.2 / 3.3

Hi, this version works for both 2.x and 3.x

My development process involves using both 0MQ versions so I needed to adapt it.