Enable unbind and disconnect methods for class socket only for ZMQ >= 3.2

Unfortunately I have to use ZMQ2.2 with my applications and the recent addition in 165e93 broke my compilation.

I'm not sure about the ifdef conditions.