Use uintptr_t in mem pool to avoid compiler warning if sizeof(void*) != sizeof(int)