escape gcode path, collect stderr
Fixes https://github.com/prusa3d/Slic3r/issues/1679
Fixes https://github.com/prusa3d/Slic3r/issues/1666
The XS was left only for the unit / integration tests, and it links libslic3r only. No wxWidgets are allowed to be used from Perl starting from now.