added support for system clipboard on mac