Fix warnings from mingw64 in timing.c

Backport from dda52139 from the 1.3 branch
3 files changed