Make xref depend on compile