Revert "Remove constructors from FileEntry that prevent owning resources"

This reverts commit r202420, which broke the build.