Updated files

I updated files so that the needed files would build. I also deleted
files that were causing compile errors. Added write to mdat. Removed
unneeded section of write from mfhd.