Fixing socket code build error