Fix TargetMachine ownership in EngineBuilder.