getModTime: Convert Windows time to POSIX seconds.

Fixes #1538.

(cherry picked from commit 6ce9ca28079e9ce0f6fe96e05deece5a1ca430a0)