Fix building.
Fix file permissions.