pool: be verbose on which pool failed.
api: add missing extern declaration (for consistency).