build: prevent SDL2 from polluting global cflags and extralibs