fix invalid conversion error with MinGW 4.8.1 in net.cpp