Functions defined non-global or not in a class are now converted to C++ lambda function