osx build fix

Fix build in Qt for OSX