Allow build with SDL2.

This is a bad hack that relies on `sdl2-config` being in the path.  Also
it won't work on Windows because of the way `execute_command` is used.
I'll live with it for now as it enables SDL2 development.  This needs to
be done properly before release.