On Windows, use SystemTimeToFileTime instead of timegm (since it handles dates before 1970 correctly, unlike MSVC's _mkgmtime32).