Replace lambdas with boost::bind