buildsystem: update build process for 10.8

This includes build script changes needed to make the classlibs and runtime build on 10.8.  I verified via TC that these scripts are backwards-compatible to 10.6.