Fix Qt5 mac build

Fix qt5 mac build, as noticed by @TheCosmotect