fix build in Qt5