Merge pull request #72 from mkoppanen/windows-symbols

Make sure that DLL symbols are exported
Enable unused warnings
Fix unused variable warning
OS/X detection was missing; put this back
Merge pull request #73 from akitada/fix-unused-var

Fix unused var
Merge pull request #74 from hintjens/master

OS/X detection has gone at some point in the past
Updated copyrights
Added zlist sorting method
Merge pull request #75 from hintjens/master

Added zlist_sort
Optimization for zlist_remove last seen item
zsocket_destroy accepts null socket for consistency with other destructors
Merge pull request #76 from hintjens/master

For classic use case of scanning list for an item, then removing it
Fixed regression in zlist_remove
Merge pull request #78 from hintjens/master

Fixed regression in zlist_remove
zloop_poller: control disabling of event handler on POLLERR

Normally a POLLERR flag returned from poll(2) will disable the
event handler after the first callback. For some file types,
POLLERR is not an error situation and this behaviour is
undesirable. To keep the handler enabled despite POLLERR being
returned, define the pollitem like so:

zmq_pollitem_t items [] = {
       { 0, fd, ZMQ_IGNERR|ZMQ_POLLIN, 0 }
};
demo program for using ZMQ_IGNERR patch

also contains a named pipe reading example

Signed-off-by: Michael Haberler <git@mah.priv.at>
Added support for ZMQ_ROUTER_MANDATORY, ZMQ_XPUB_VERBOSE, and ZMQ_DELAY_ATTACH_ON_CONNECT
Merge pull request #80 from mhaberler/pollerr-no-disable

Pollerr no disable
Merge pull request #79 from hintjens/master

Added some missing setsockopts
Make zsockopt robust against out-of-date libzmq versions