Included <tchar.h> in and fixed TIMEOUT redefinition in Controller.cpp