Fixed sockerrno for Windows