add support for both mapnik 0.7 and mapnik 2.x