These changes are useless (sorry if I'm rude, this is not the intention).
I don't see how C::B will be usable without its toolbars, the choice dialog, the file dialog, the clipboard and the wxpropgrid.
The way to fix this is to just abort the compilation in prep.h or globals.h if one of these wx features is not available.
You're wasting time guarding every use. Probably you'll make C::B compile, but it will broken in many surprising for the users ways.