Fixed errors when ncurses was built with NCURSES_OPAQUE defaulting to 1