[sgen] Fix build on Linux.
Sanitize the kqueue check in configure.in.