Function to generate an XMP package: Bug #736587

XMP segment of metadata can now be returned as a packet (a
NUL-terminated string).
Update VAPI