Makefile: fixed building if static libs found by default
Fixed disconnect logic for participants