Buildfix for Blackberry, Meego. Optimisations for Qt