Adapt MSDOS port to latest changes.