Added clipboard management on MacOSX.