It's a trial and error fix. I have no theoretical backing for this fix, other than that it keeps my gcc from complaining when compiling. A person with thorough knowledge of Gift internals should take a look at this (Wolfgang?) before including.