start implementing the libretro interface. (not working yet)