Fixed qsort_r() problem when targeting AmigaOS.

We fall back to the libgit2-provided insert sort as done for other
platforms.
Merge pull request #1554 from sba1/sort-amiga-fix

Fixed qsort_r() problem when targeting AmigaOS.