Sdl2

Merged SDL2 branch with the master 1.0.0 release and fixed compilation errors. Game seems to be functional, but needs some tweaking to get it working just as nicely as it did on SDL 1.2.