memory.h fix for generic builds.