added check for HAVE_SIGNAL_H and HAVE_PTHREAD_H, fixed --help output.