create build-errors file in case compilation failed
Merge pull request #571 from smuzaffar/IB/CMSSW_7_0_X/stable

create build-errors file in case compilation failed