More fixes to build-mac.sh, to use QT 4.8.5 which works with OS X 10.8