Engine with gearbox and differential