Declare correct build time dependencies so check-xref works.