Use C99 flexible array in pool.c