Check for  __FreeBSD_kernel__ as per https://lists.debian.org/debian-bsd...

.../2006/03/msg00127.html, fixes #1684