Fix for windows compilation error having to do with getenv