Update/build fix Libretro core

Some changes necessary to get the libretro port compiling/building again.