cmake: apply some warnings to C-specific code
XXX
blob: improved logging in multi-stage write
blob: fix copying of old record on prepare