Added proper XDR implementation (Lustre bug 17662), needed for on-disk compatibility between platforms of different endianness.