[lib] Use pbcopy on mac os