Fix warnings in tracing messages for 32bit compilation.

Since we now require C99, use `%td` for `ptrdiff_t` and `%zu` for `size_t`.
8 files changed