Compatible prior distributions for DAG models