[PATCH 07/25] Fix printf format specifier

Fixed format %d expects type int but argument XX is long unsigned int

Fix printf format specifier for size_t arguments.
There is no standard, MSVC defines %I and GCC %z.
Moreover, it is long on 64bit machines and int otherwise.

Contributed by: Thomas Paviot, Denis Barbier