Fix the environment for windows.