Adding SDL2 compatibility