Added SVG compatiblity fixes to parser.