sdl2: fix configure and build issue.