Replace some libc types by std equivalents.