Fix link order in Makefile