Added a runtime check to set the console mode only under Windows.
Added a runtime check to set the console mode only under Windows.

Should allow safe Windows execution, while also allowing a clean Linux startup again.
emperorstarfinder/halcyon,emperorstarfinder/halcyon,emperorstarfinder/halcyon,emperorstarfinder/halcyon,emperorstarfinder/halcyon,emperorstarfinder/halcyon,emperorstarfinder/halcyon