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
Merge pull request #337 from Tarnyko/Milestone-ThanksGiving

Replace Epoll calls by Poll