Move putchar to the common source