Work in progress SDL2 compatibility.