SDL2 support fix
Merge pull request #75 from hurikhan/SDL2

Fix compilation with SDL2 release