[c++] C++ inheritance - inaccessible base?