Updated makefile to put LDs last