fix xfer and xfer2 glibc errors