_mm_free and _mm_malloc switched to the macros MM_FREE and MM_MALLOC

Switched to macros due to problems with `stdlib.h` when using `_openmoc.so` as a library. Most of the changes are from `sed`.