add errno info when socket close and add -I../easy/src/base option for g++ compiler