build: Fix a linking failure

This commit works around a failure that takes place during linking.
The `ln` command is called with matching paths making it fail and
abort the build process. We can avoid that by assuming we only want
to link when the paths are not equal to one another.

Change-Id: I482bee9a7f0d7d7b675509edb5ff3d759ea553b5