fix package linking