Use closesocket() instead of close() (similar to slirp and serial code)
Fixed some warnings


git-svn-id: svn://svn.code.sf.net/p/bochs/code/trunk@12473 6c8e4198-a580-4521-a02f-c9ae86df1db9