Replace boost::bind by C++ lambdas