check for dependencies on libz and libcurses in llvm