api: add missing header.

Imlicit declarations (using get_pool_name() without including pool.h)
produces a warning for me and AFAIR breaks compilation for someone else.