- rework InputSystem and GraphicsContext
- fix many compiler errors