more work on clipboard handling

added X11 implementations; lengthened OSX implementations