Port to Qt5.
Use minimal in Nemo for QGuiApplication for in case the compositor isn't running yet. Use QGuiApplication instead of QCoreApplication
Fixes after review for Qt5 port