Update libgit2, fix deprecated constants/functions and disabled deprecated stuff