Port to SDL2, tested on Linux

No major changes, but it will probably require some
testing on other platforms.  Mousewheel semantics
have changed slightly and need testing.  I also
uncommented two lines to request a newer OpenGL API
on OS X.

Ticket links: hrydgard/ppsspp#92, and I'm also motivated by hrydgard/ppsspp#2462