Make SDL2 version safer.