moved allocation macros from common.h to alloc.h