Merge pull request #4979 from libgit2/ethomson/deprecate Deprecation: export the deprecated functions properly