fix LED compilation errors