fix bug where poll does not accept -1 as argument

This should fix https://github.com/zeromq/jeromq/issues/184