define `xobs_chunk_alloc` and `xobs_chunk_free` if not defined