Fixed all errors and warnings in the net/scl/network package.