Would suggest dumping the mingw environment and using an Ubuntu virtualbox to run a true linux system. I never could get the toolchain to run or compile properly on Windows. Somewhere out there is a virtualbox disk image with the latest (still very old at this point) Xenon toolchain already installed and fully configured in the compile paths. If I find it I will post it here.