Fix app_includes bug with QApplication class for certain cases

If you have some code which is initialized via app_includes.inc.php and that code uses any variable/method of QApplication then the same would fail because when app_includes.inc.php is included, QCubed is not completely finished bootstrapping. This change ensures that all code initialized via app_includes can use the QApplication class.