Add FreeBSD Support

This work gets the bare minimum code working on FreeBSD.  Catalogs compile, 
Maybe remove the selector - it is silly.