Inactivesound fixes, input focus fixes, vsync fixes ...

Add sys_sdl2.c to be used for common Sys_ stuff
Remove unused debug.h and mgraph.h