sdl: fix build against recent X11

Fixes #25129.