Build using -lncurses on Mac (ncursesw not available).