[Qt5-compat] Change Q_WS_WIN/WIN32/MAC/MACX macroses to Q_OS_*

Q_WS_* macros removed from Qt5, to determine platform use Q_OS_* macros which exists in Qt4 and Qt5