Revert "upgrade to zmq 4.0.5"

This reverts commit 8bd9f3d9a2ef928a77bb2934b03dc7a65930c6ee.

Seemingly, 4.0.5 has a memory leak, but it could als be my code.
Set up staging environment to debug the issue.