introduced alternative for clang users to convert Ruby lambdas to C++'s std::function