Fix Mavericks compile issues (qmake).