Fix compilation issues with boost 1.54
Fix segfault in graph_blockmodel.hh