Compiler: generate files with default permissions.

Fixes #182.

It's not a pretty fix, but I don't really see another way. I'll make a PR on OCaml to add an optional `perms` flags to `Filename.open_temp_file`.