After trying a bunch of things from mingw-w64, Cygwin and source forge, vs dev tools... I removed everything and installed latest releases from tdm-gcc and it works now properly