[Orc][Kaleidoscope] Update the MainLoop code of the orc/kaleidoscope tutorials