Draft: fixes to dxf & svg exporters to work in console mode