Add symlink support (fixes #873)