Separate platform support in libp1stream.