Cmake changed, small change in random_int()

Cmake builds now builds the new ncurses test only on non windows.