Fixed exit call.  Corrected linker error in makefile.