shadow: improve Mac subsystem