Add C++ build. Requires c++ 4.7 or later