Fix pir generation in libgit2