Change parameter of CopyFD() to uinptr, which is the type returned by os.File.Fd().