Move create_rect to the sdl namespace.

This library dependency issues with CMake.