Fixing compile errors with recent pooling optimizations.