fix file mode for ncurses shared libraries in chapter 6