Buildfix for Blackberry, Meego. Optimisations to Qt build.