Resolved NULL for unsigned int compiler warning.
Resolved a number of compiler warnings regarding return values

Specifically the return values of git_index_find and
git_odb_read_header.