Added missing #include <functional>