Kqueue support added (untested)