[embind] Fix benchmark to build again.

Make up for the last year of API changes.
Merge pull request #2906 from waywardmonkeys/embind-benchmark-build-fixes

[embind] Fix benchmark to build again.