Fix library order