Add getargv.c and debug.c to tools folder. Adjust make files and header files.