fix compile error in Qt5.1.