CTK ncurses backend and platform build support for native target

Implement a CTK ncurses backend for the native platform, with mouse support.
Also add platform build support for the native platform.