Added failsafe for OSX in Qt files