fix a build issue in Qt5