* fixed memleaks
* fixed SDL_RWHttpWrite call
* fixed warnings