zeromq: Change the value of the poll timeout according to the zmq version.
Must be in microseconds for version 2 and below and in milliseconds for
version 3 and above.