patches: include export.h in lib/refcount.c