Abstract over dependency kind in Compile

This follows up on my work to make it easier to add new dependency kind in sbt.

This is the last part that needs to be adapted to take advantage of the new infrastructure that has been introduced by :
 - Abstract over dependency kind in Analysis (#1340)
 - Don't hardcode relations in TextAnalysisFormat (#1572)

/cc @xeno-by
This file uses `DependencyByMemberRef` and `DependencyByInheritance` that were previously defined in the same package as `Analysis`. It has been moved to an `enum` in the package `xsbti`.