Qt 5.3 MacOSX fixes

Here's the Mac fixes for Qt 5.3 :)