Fix build with Qt 5.3

I see that Ubuntu fixed the issue for themselves, but didn't send the patch upstream: https://launchpadlibrarian.net/176668097/qt5.3-fix.patch