Add support for C++11 functionals.