This shouldn't be necessary, because it should never be called with
const arguments, but this works around a BGL bug. Those changes don't
fix the issues with the dijkstra example, as that would require adding
partial specializations for boost::filtered_graph, which would be a
little over the top.