Switch to hard references only in EventDispatcher, fix ApplicationMain for -dce full