Changed from using gcc to g++.

Changed to using g++ (instead of gcc) so that c++ builds
link correctly.  This fixes link errors where some exception
handling symbols are not found.

Also added output file to generated VS projects.