Fix compile breakage with kref.h