Cleanup and fixes

Various cleanups and fixes

* Fix GUI shell build
* Use stderr for logging for native platform and leave stdout clean for future ncurses CTK backend.
* Whitespace cleanup