switch Q_WS_MAC (removed in Qt5) to Q_OS_DARWIN