Fix for some environment lacks memory.h
Merge branch 'fix-for-arm-target' into develop