resolved linking order in makefile