cad/OrcaSlicer: Fix multiple wx assertion issues
PR: 294281
Approved by: makc (mentor)
Since our x11-toolkits/wxgtk* builds are assert-enabled we have to fix
the problems that upstream didn't address.
In addition, reformat the Makefile to improve readability.