update to sdl2 0.0.8, and move code to modules