Add some ifdefs for when SVG is not enabled.