fix compile with latest mapnik (TODO - type conversions (particularly bool) still need work)
merge