Fixing net_service code and build file