Removed dependence on valgrind, updated header file paths for llvm HEAD and also eliminated the dependence on libc++ by removing lambda functions in favour of inner classes