Make libmetallirc I/O agnostic.