fix wputenv on windows