add connect and move include to top Makefile.inc
first round of tests to check system calls restarting with pthreads.guenther@ ok