mingw fix, sdl hacks, prompt autofix