Use Qt5 Q_OS_* macros instead of Q_WS_*

The Q_OS_* macros should be used instead of Q_WS_* in Qt5:
https://qt-project.org/doc/qt-5.0/qtdoc/portingguide.html

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>