added sdl 2 support: it builds but doesn't yet run
Finish SDL2 port on linux; solve some valgrind errors in cleanup.
fix build in emscripten
Fix OpenGL port for desktop