Rename kqueue1(2) to kqueuex(2) to avoid compat issues with NetBSD
Change kqueue1() to be compatible with NetBSD In particular, make it accept open(2) flags. More precisely, only O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag for kqueuex(2). Reported by: vishwin