Raise exception if zmq_poll returns error.
ZMQ_GSSAPI_PRINCIPAL and ZMQ_GSSAPI_SERVICE_PRINCIPAL are available since 4.1.0
Merge pull request #317 from GreatFruitOmsk/master

Better handling of zmq_poll errors. Fix ZMQ 4.0 compatibility.