Avoid having to link to boost.
Flip SVG to the right way around.
Pass string references as const.
Add required includes.
Use proper limits instead of MAXFLOAT.