fix copy/cut to clipboard on osx