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

Change-Id: Idca8cf8fae41e4758fb2d7d8118537bf9534e102