FIX: %lu  printf code can't be used for size_t types on 32 bit

C++ can't use %zu code which is standard for C99 and above, so I added CPP ifdefs to fix that printf