Merge pull request #4952 from libgit2/ethomson/deprecation Deprecate functions and constants more gently