Fixed compiling on Qt5