Change Q_WS_WIN to Q_OS_WIN for Qt5 compatibility