Tidy up and improve the libretro makefile