add the memory-align function and mempool.