Crappy SVG path parser written in C++