changes required to make this build and work on Windows
show error message instead of crashing if PRINT_MODE is incompatible or GRAPHICS is not enabled