Use mem_fn from std or std::tr1 depending on whether we are using C++11 or not