Changed debug.c and output.c to .cpp, because .c was causing some
strange bugs in Eclipse CDT's code syntax highlighting