Fixing clipboard problems on OSX