adapt to Mapnik 2.3.x changes: https://github.com/mapnik/mapnik/commit/5de5ffb7649a0cf5328d8f03e8be4a1effb31acc