Fix a number of simulation issues where either the compiler complained about something, or the code needs to be adapted to the no longer available prog_char.
Changed paths: