This commit configures the build so that the Mail API and implementation are no longer transitive. Closes gh-1462