Use try-with-resources when using the LLVM bindings in ClassCompiler.