Common library: add io stream "helpers".