Added code is exclusively inside of #ifndef MLV2DNG block so it should not break anything in mlv_dump.
In the mlv_rec Makefile: MLV_CFLAGS = -I$(SRC_DIR) -D MLV_USE_LZMA -m32 -Wpadded -mno-ms-bitfields -D _7ZIP_ST -D MLV2DNG)
Sorry for delay, managed to try it just now.
Tested raw data contents from a RAW file (converted to DNG with raw2dng and extracted with dcraw -4 -E) and from a converted MLV file. 100% identical, test passed.