Initialise QCA before QCoreApplication

* Fixes segfaults with QCA head on randomInt()