libretro: rework makefile