modify Makefile, set timeout for socket