Changed %zu in format strings to %u (to work on MS compilers) and cast the args to unsigned int to silence warnings.