Are you sure?
I just compiled it again and got the same errors like you.
Then I changed line 92/93 file src\
win32\run.cxx from
// USE_IMM - define it non-zero if you want Input Method
#define USE_IMM 1
to
// USE_IMM - define it non-zero if you want Input Method
#define USE_IMM 0
and it compiled without errors (msys+mingw and visual c++ 6.0)