Avoid "my" variable redeclaration [minor]
Prevent warnings when compiling on a 32-bit host [minor]

Avoid "%zu" as this C99 library functionality is not supported by MSVC.
Merge origin/develop into develop