(libretro-build-common.sh) Refactor build_libretro_dinothawr