fix compiler warning
fix build problem under qt5