Revert "fix kqueue platform check"

This reverts commit 3539a4cddc7f1ce4b695c1ee07d961898f6bda27.