fix for librsvg >= 2.36.2
merged from azakus branch