This fixes the build against ZMQ 3.2.

Hello,

This PR fixes bugs #62 and a few other compilations error that happened when building against ZMQ 3.x.

It also fixes a socket test that had trouble against zmq trunk. (I believe its because of `zmq_event_t` that doesnt seem to exist anymore).

Could you please enable TravisCI for this repository ?