Win32: reduce environment array reallocations