added missing functions from sdl_thread and sdl_video