Clean up NCURSES_BITS implementation