support latest mapnik 3.x (with custom variant)