Improved build script for use on FreeBSD; added sanity checks
Merge git://github.com/thundur/kn-next