CTK ncurses try4

Implement an ncurses-based CTK backend for the native platform.

Rebased and cherry-picked form previous branch.

Tested on examples/irc and examples/webbrowser.

Note this is the 4th time I submit this.