Allow to be built as FreeBSD kernel module.