Use SDL2 instead of GLUT everywhere.