Ported from Serial.println to printf

Added a bunch of stuff needed to use stdio with uart