Fix compilation for BFS and SPF benchmarks.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>