Use autoconf for SDL2, CMake's not quite there yet