add compatibility with mapnik 2.3.x