Fixed socked init to happen outside platform init on Linux.