updated eric.c to new interface to find network nodes, added -pthread
and -lrt libraries in run.sh to compile eric