Surprisingly, this made a difference: before, boehm-gc could be configured in parallel with libstdc++-v3, so it wouldn't get the right header flags. I'm checking this in head and branch.