update Makefile to adjust link order.