update mm.h and mm_inline.h from kk_2.7 to fix compilation