Made Base2DApplication part of the engine.