really fix file mode bits for ncurses libs