Added filesystem API and SDL_free.