mailcore2: new package

This PR is primarily intended to introduce `mailcore2` as a new package. New libraries were needed, and some existing libraries required newer versions.