Wrap 'buildMalloc' and 'buildArrayMalloc'.