made getenv() more threadsafe for win32
5 files changed