Fix some potential permission issues when building as root...