config: add `const` qualifier to set_pool_{algorithm,nfactor}().

MSVS doesn't like implicit casting.