Include required 'debug.h' file.

  This updates #111.
  Added simple CFile::basename() method.

  This closes #111.