Backported QtWin from Qt 5.2 to Qt 4.