Get rid of exception throwing in libretro.cpp