Link versioned shared libs relatively, not to the absolute DESTDIR which may no longer be valid.

Patch from Lorenzo.