Fix Qt/Blackberry builds