updated deprecated methods in sdlmain.cpp for upgrade to SDL2