Restore ToolChains.cpp from vendor branch