Fixed UnixFile to use reference count.