(libretro/memstream.c) cleanups