Wait, why do these patches require libattr? As far as I can tell we're not actually using it. We could just as easily include sys/xattr.h instead.
That's probably the only way I could get the header 8-ish years ago, but it could be I just included the wrong one at the time.
(I also can't tell what libattr does, since there's almost no documentation attached to the project.)
It's just a compatibility library for using extended attributes on various systems.