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

create build-errors file in case compilation failed