accomodate recent changes in boost::ref