One header missing?
I succeeded building and testing it with one small fix: generators/poppler/pdfsignatureutils.h needs
#include <functional>
but I'm not entirely sure. It could also be poppler in qt5/src/poppler-form.h which needs to have it added.