here is the right way to build libgit2 and php-git binding.