Implement minimal stdio for puts() and printf()

Thanks CCHyper for mapping enough functions for this.