getModTime: Convert Windows time to POSIX seconds.

Fixes #1538.
Fix warning on Windows.
Unbreak the build on Windows.

Broken by #1535.
80-col violation.