some more mingw x-compile fixes