Fix BSocketWrapper and BNetworkConnection