xen: Use stable library interfaces when they are available.