Made QtWin compile under Qt5

There were some transitional fixes.