Fixed QT build file and updated the Mac build script