Simplifying build system code for generating test and example drivers and avoiding some warnings from SWIG about shadowed DistMatrix member functions.