Convert some static buffers in the util lib into heap.