Adding #include for <functional> as required by std::function

Thanks to Axel Kemper for pointing this out

Fixes #186