fixed main (for SDL_main)