LIB: Add memory_alloc.c from caf/msm-3.4