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

As an aside, adjust SConscript to allow building C++11 applications.
Update which to adhere to the style guide.
Use a list for storing aliases and functions for improved insertion time.
More style fixes.
Merge pull request #2 from nathan-hoad/nhoad-which-implementation

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