- fixed the display of the Console window, ensured that graphics initialisation is done on the right thread