Added --enable-mm-malloc option for memory allocation control