flexiable the build scripts and add a freebsd build script