Remove obsolete AM_CONFIG_HEADER macro.
Fixed a bug that cgdb will crash when hit 'n' with no source loaded.

(Fixed typo of 'curr' and tested 'sview' for NULL. --mmueller)
Fixed a bug that sometimes use quit command from gdb will not quit cgdb.