Fix file permissions

This fixes file permissions for text files. This should be a fairly safe change, but I'm on Linux so I haven't tested the actual building with Windows & OS X.