Update autoconf for SDL2

Also small update to SDL_Main.cpp.

Now builds and runs successfully on OSX.