Fix to OSX build (add missing headers and disable mmfile).