Better detection of the libXi