Add FreeBSD Support

This work gets the bare minimum code working on FreeBSD.  Catalogs compile,