mm-core: Fix LOG definitions for JellyBean build

- LOG is replaced by ALGO in JellyBean, use ALOG if LOG
is not defined to avoid compiling error.