Add closures dict to pipeline environment
Make closures dict optional
Facilitate using llvm_cbuilder with ASTs