fix some warnings on mingw
restore RTTI