Fixed compiler warnings in LightingThread.cpp.