Fix compilation when ENABLE_VALIDATE_POOL is defined