updated compiler build script and supporting functions