some random changes, mainly libretro specific