Fix RHEL5 zmq unit tests

* Import zmq, check its attr and skip test if necessary.