More SDL2 tweaks

* Fix display of window icon
* Prevent possible overflow when checking scancode on keypress