Fix modal dialogs messing up older versions of OS X.

Seems Qt5/OSX does not like WindowModal in our app.