Some infrastructure to support links, and file permission fixes.