[build] Fixed ROOT dictionary adjustments for out-of-tree builds
[examples] Fix conditional includes for root 6.02 compatibility

o add missing includes in mcstat.C