Use _WIN32 ifdef to check for windows
This is more robust in case QGlobal has not been included and we do not have Q_OS_WIN.