frontend/CMakeLists.txt: Link against dl, zlib, pthread, ncurses
llvmCodeGen.cc: Support libLLVM 3.5