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

(cherry picked from commit d244a9899b1b6b9b3cd39c4b486710706bc12bab)