[libretro] improved Makefiles