kqueue(2) compatibility library