fix file mode for ncurses shared libs