replace malloc macros in imports.h with u_memory.h versions