More virtual removal.
Merge remote-tracking branch 'origin/c++-improvements' into multithreaded-training
Initial set of thread_local static changes.