Build on Mac again
Fix Qt5 build on Mac

Q_WS_MAC doesn't exist in Qt5 anymore, use Q_OS_DARWIN instead