fix a build issue with Qt5