XXX: copy record only if it's really needed

XXX: This is very lousy implementation - rewrite
blob: less extensive logging
misc: define offsetof only if it's not defined
blob: replaced __eblob_unused with __attribute_unused__