Fix incompatibility with mapnik >=2.1