Move from select.poll to select.select

select.poll does not work on many BSD's while select.select is
more compatible.

Signed-off-by: Nils Carlson <pyssling@ludd.ltu.se>