add malloc id for debug possibility
fix typo
remove debug code of malloc
fix emscripten compilation warning