Fix #302: Drag and drop for linked files

If the `Compile`element contains a `Link`element then it is a linked file,
so we compare it by its linked name.