Merge pull request #5465 from libgit2/ethomson/cred_deprecation credentials: provide backcompat for opaque structs