fix compile warning, they are fatal to Qt Creator