Fix library order for hashdb