on Windows we must create a QCoreApplication to be able to load SQL plugins