Take out most of the __LIBRETRO__ hacks in mainline codebase