mapnik: fix broken compile against cairo/cairomm after #17032

Fixes https://github.com/mapnik/mapnik/issues/1753

Closes #18458.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>