If `--c++11` is passed to vtk5, boost is also required to be built with C++11. You can check boost for example about checking dependency conditionally.

The same may apply to other formulae.