Even with that non up2date MinGW environment i am able to build UfoAI even radiant
I've started from scratch
set path=D:\temp\codeblocks\codeblocks\MinGW\bin;c:\winnt;c:\winnt\system32
removed appdata codeblocks folder
D:\temp\codeblocks\codeblocks\codeblocks.exe
verified compiler dir D:\temp\codeblocks\codeblocks\MinGW
added libs and include
started compiling and no error!
It would be helpful to cut and paste the whole build.log