Changes for building QT under OS X 10.7 - 10.9

These are changes required to build under later versions of OS X.