pthread_cleanup_pop: fixed memory leak
corrected the copyright info in debug.h
fixed pthread_create