create build-errors file in case compilation failed