Replaced some codegen hacks that didn't work with ones that did - now
C++ standalone works! At least, it compiles and runs without error.