fix #38 and adapt to upcoming Mapnik 2.3 release - refs mapnik/mapnik#1954