Fix mingw cross-compile build
Rename git__win32_path fns to git_win32_path
Reintroduce type for UTF8 win32 path conversions
Minor win32 fixes and improvements

This is just a bunch of small fixes that I noticed while looking
at the UTF8 and UTF16 path stuff.  It fixes a slowdown in looking
for an empty directory (not exiting loop asap), makes the dir name
in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation,
and fixes some slightly odd assumptions in the cl_getenv helper.
Missed one path for path_as_utf8 type