Small mingw compile fixes