Misc cleanup in SDL.cpp.