File permissions: add support for Java 7 posix file permissions.