LibRaw 0.23.1 has added a new compilation definition LIBRAW_CALLOC_RAWSTORE.
Given that this is a compiler define that will do no harm on earlier release and is otherwise benefical it could be added unconditionally, Or if you wish controlled by an option in the CMakeLists.txt file.
What do you think?
David