kst/mingw hacks