timex.c: add copyright header
Allow Mac linebreaks in shell

QEMU uses Mac style newlines in its UART implementation.
This change allows Unix ("\n"), DOS ("\r\n") and Mac ("\r") style
linebreaks.
Merge pull request #561 from mehlis/copyright

timex.c: add copyright header
Merge pull request #565 from Kijewski/shell-mac-nl

Allow Mac linebreaks in shell