Compile Link Selector: Bugfix compiling distance condition

- fixes #59
Merge branch 'master' into branch-0.9