support for kqueue() works

on a small number of filedescriptors on OSX the improvement is not much noticeable