Fixes for both `Directed.xs` and `Undirected.xs` compilation errors

Small fixes; may need to add macros unless we specifically want to only support Boost 1.50+.