Fixed cmake issue with symlinks.