Add --with-mempool-cutoff=N to build and configure scripts