link against gles if USE_GLES is set
use sdl2-config if sdl-config is not found