fixed putchar to convert LF -> CR/LF on serial output