Fix RHEL5 zmq unit tests

* Import zmq, check its attr and skip test if necessary.
Merge pull request #9498 from cachedout/unit-tests

Fix RHEL5 zmq unit tests