Fix library order in Makefile