Change all free() calls to SDL_free() for portability

Signed-off-by: Jacky Boen <aqiank@gmail.com>