Externalize putc installation for printf