fix qt compile bugs under vc 2012 & vc 2013

see
http://stackoverflow.com/questions/18080625/qt-4-8-visual-studio-2013-compiling-error