Preserve file permissions #52: make it Java 1.5 compatible.