Add -lpthread to LDADD in net/server/Makefile.am