Keep symlinks as symlinks when installing

This fixes #1006.