Replace printf with Rprintf

* src/libgit2 (cache.c, util.c): Fix R CMD check: Compiled code should
  not call entry points which might terminate R nor write to
  stdout/stderr instead of to the console.