Fix hardclock with some versions of mingw64

Backport of 383433535 from the 1.3 branch
2 files changed