fix build with Qt5 and MSVC