Strange problem - need unused variable to make (Blink like) sketch run

Can anybody explain me, where the problem is

No because there is nothing wrong with that code you posted, if you uncomment those two lines then there will be no change in what the sketch does because the variable led is not used in any other part of the sketch. Are you sure you posted the right thing?