Qt 5 needs Q_OS_* instead of Q_WS_*
Qt 5 doesn't have QT_MAC_USE_COCOA anymore