Reorganised platform-specific bits to make a bit more sense
Added Windows specific Winsock initialisation stuff