replace offset_of with offsetof from stddef.h