adding kqueue support