fix endianism and structure packing issues in mmcmp.cpp