(GX) Rewrite libretro-build-common-gx.sh