main: Add a global engine pointer