fix invalid conversion error with MinGW 4.8.1 in net.cpp (Bitcoin commit 6c6255edb54bed780f0879c906dccf6cfa98b4db)