made it compatible with official SDL2