poller: remove code to be compatible with old libevents