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

As an aside, adjust SConscript to allow building C++11 applications.
EXIT_FAILURE?