mingw.c: move definition of mingw_getenv down