Cleanups in libretro.cpp