Libgit2 for AmigaOS4

This PR contains changes for compiling libgit2 for AmigaOS4 using a cross compiler.