fix compilation failure with QT5/Windows