Moving from SDL to X11