[LibGit2] Fix Mac build issues.