Merge pull request #214 from minrk/cleanup

remove some obsolete libzmq-compat with dead dev branches

* CMD, LABEL removed
* handle deprecated aliases explicitly rather than implicitly
* don't handle deprecations in dead 4.0-dev branch
Fix a few dangling XREPs missed by #214
cleanup gevent events on close/del

Previously, they could stick around after socket close, causing problems for later event watchers.
workaround gevent bug

Adds workaround for gevent bug when detecting libzmq bug (?!),
where get() could raise timeout on *success*, even with the timeout far from being reached (raise after 0.1ms for 1s timeout).

Bug confirmed on gevent-0.13.7, OS X 10.7.4
Merge pull request #216 from minrk/gevent_close

fix green event cleanup, and workaround gevent bug

cleanup gevent events on close/del

Previously, they could stick around after socket close, causing problems for later event watchers.

Adds workaround for gevent bug when detecting libzmq bug (?!), where get() could raise timeout on success, even with the timeout far from being reached (raise after 0.1ms for 1s timeout).

Bug confirmed on gevent-0.13.7, OS X 10.7.4
don't remove deprecated names unnecessarily
Add missing library on Linux
Merge pull request #218 from gavrie/master

explicitly link librt in bundled libzmq on Linux

Some systems could see `undefined symbol: clock_gettime`
py3compat IPC_MAX_LEN message
more consistent use of errno in core.error
Merge pull request #221 from minrk/errno

use errno name everywhere in core.error
disable destroy_linger for green tests

it causes weird problems that make no sense, and may in fact be a bug in libzmq >= 3
Copied patch from Pawel Subocz to add poll support to zmq.green.
Implemented comments from minrk so zmq FDs are watched for read events. Mixed in existing poll tests in a green fashion.
This time get minrks comment right...
protect sockets from errors during gc in fork
Removed timeout from select until I figure it out, added green poll timeout test.
Fixed up green poll timeout test.
Merge pull request #222 from minrk/fork

Protect sockets from errors during gc in forked child
Wakeup test should only register destination socket for pollin, per comment by minrk.