fixes to epoll_demo