Added improved build scripts for freeBSD & MacOS