fixed compile error on Qt5.0/MinGW.
modified for changes of Qt5 specifications.