Allow to build against OpenGL ES2 with SDL2

This is required to get a test setup on PCs to work on OpenGL ES2.