changes to compile and link against static glib and static ncurses