flexiable the build scripts and add a freebsd build script
merge flexible the build scripts and add a freebsd build script