Adapt to changed signature of event_remove_source function

Also use epoll based event loop on Linux.