Use better types names (uchar -> u8, etc).
Implement LF for console.