Fix Makefile to generate LinkDef.h in the right order