Add support for pasting files in xlib