beremiz

Intermediate merge of wx.NewID_abuse_fix branch but kept debug code in the branch. This is still work in progress, banch is NOT closed.
/**
* No platform specific code for "Generic" target
**/