build with epoll support on linux (and kqueue support on Darwin)

kqueue should be enabled also when building for *BSD (at least freebsd)
but I didn't have time to try building it on such a system yet