Update mm.c

fix compile time errors