fix epoll example for new interface
redo epoll_wait to return number of events