Qt 5.3 MacOSX fixes

Here are the Mac fixes for Qt 5.3 :)