Add #ifndef protection for memory-private.h

Signed-off-by: ChangZhuo Chen (陳昌倬) <czchen@gmail.com>