util/attr.h: use HAVE___ATTRIBUTE__, not __GNUC__ comparisons