Only create the closure if our runtime supports it and we are not using the interpreter