libchardet build error for mingw