thread.*,macros.h,semaphore.c: Changed the DEBUG define to DEBUG_MODE since I realize now that DEBUG had already been defined in the drivers somewhere