Add putchar function.