Significantly tidied up the cruft in GetTicksCount64 patch from #8070, it should compile without error now.