Fix bug which required kqueue to be available even if autoconf did not detect it.