replaced sdl1 with sdl2 code, amended configure script/Makefile.am to use sdl2