Fixed compile error on gcc 4.8.0

Hi. I used mingw 4.8 with QtCreator and got some errors!