Upgrade to SDL2 APIs.
Merge pull request #1 from pwhelan/sdl2

Upgrade to SDL2 APIs.