In your xplat/Flipper/FlipperTransportTypes.h file
add this #include <functional>
#include <functional>