Improved (slightly) mac os pasteboard support