some helpful handler files for sdl on mac