Changes neede to get things building under mingw