[libretro] fixed compilation issues & removed unused code