Fixed the bug, basically the lack of the \n in the hello world
string meant that stdio would not send the buffer, and in the
_write_r code the while loop needed to check both for a NUL term
and that the length had not been reached.