Use epoll_pwait if epoll_wait doesn't exist

Figured this is the less intrusive approach.