This adds a custom build which excludes the event/alias and deprecated modules Fixes #12770 Closes gh-1556