SDL 2.0

Converted the program just enough to compile using SDL 2.0. There are
still a lot of errors, most of which should be fixed by next commit.