Rearrange defitions of stdio.