added 2 patches for thread safety fixes for root
Merge pull request #350 from nclopezo/patch-root-71X

added 2 patches for thread safety fixes for root