Replace Epoll calls by Poll

We replace Epoll_* calls by Poll_*. This simplifies the
code and avoids some race conditions linked to the
creation of a file descriptor outside of the main thread,
but then used in the main thread.

Fixes #332