Additions to the build scripts for more general usefullness on linux