Add missing setenv() for Windows.
Fix incorrect function call in timegm.c.