add pkgng support for freebsd, closes #1787