This looks like it needs the same fix at https://github.com/mapnik/mapnik/commit/ca9b0fccab48d7ca5305910be615078790a5bf43