Add I/O stream functions for wnats.