Fix the application to quit on X11/Qt5