The #endif moves in proc.c (having to do with curproc->logbase) are definitely necessary; without them, and with memory protection enabled, MultiTOS will crash on the Falcon. I think the controlling terminal stuff in dosmem.c is already handled in dosfile.c (function do_close); I can't remember for sure, though.