CSinCosLookUpTableFor2DScans: Fixed potential errorneous memory access (OS-dependant; Valgrind complained)
GCC warning fixes
CSemaphore::waitForSignal() : Fixed error when thread got an external signal