Fix 10.9+ and update to latest SDLMain from SDL-1.2

This commit fixes the 10.9+ entry point bug where loading via double clicking the app bundle would immediately exit.

Details here: http://hg.libsdl.org/SDL/rev/cfec3f86fba7