statically link readline/ncurses libraries

depends on https://github.com/hpcugent/easybuild-easyconfigs/pull/798