Extract class MacOsXTerminal
Split Termial and Platform interfaces