Update libgit2 to 65f6c1c

https://github.com/libgit2/libgit2/compare/3f8d005a82b39c504220d65b6a6aa696c3b1a9c4...65f6c1c7eb7beb412e30cacd5cbb2b00e1e975b0
Discarding the error for platforms which don't use openssl, so we don't have any issues with threading.