compile driver working

initial version of the C++ driver code compiling