Revert "Add missing libgit2 header imports"

This reverts commit 6640f904e1786642a8a6c1c3a0fde8dacae450ba.
Revert "Import more focused libgit2 headers where possible"

This reverts commit 2c0885e4754bf0657183f958d856f3d0a198d87d.