Add a C++ implementation of which(1).

As an aside, adjust SConscript to allow building C++11 applications.
Please put the #includes together, and the using statements together.