configure: fix enabling SDL2 without pkg-config