sdl2: Fix a few type problems and cname attribute issues

Merged Rico Tzschichholz requested to merge wip/sdl2 into master

Merge request reports