final adjustments to SDL2 port, now only linking errors remain