Fixed incompatibilities.
Fixed file permissions.

I was editing the code on a FAT-formatted device, so the file
permissions got messed up. This fixes them.