Use QCoreApplication instead of QApplication to enable Xserver-less operation