Bugfix: Make redirected stdio write initialize UART

Calling a scanf before the first printf would end up calling serial_getc without initializing the UART.
Merge pull request #418 from lionleaf/master

Bugfix: Make redirected stdio write initialize UART