Fix compile warnings printing size_t

Original fix in 8b9566bd was enough to suppress the warning when
building the 32bit version of the Windows agent but the 64bit builds
still complain. An extra layer of encapsulation was required.