I don't see what is so unpleasant about loading the file brl.mod/blitz.mod/blitzobject.h, but to save you the pain, there is a class pointer and a reference count:
struct BBObject{ //extends BBGCMem BBClass* clas; int refs; };