windows support (only mingw, visual studio not working)