adapt multiplayer code to gcc/unix

Initial port of the multiplayer code, i386 only for now.