Fixed forward declartion incomplete type error in c++ example code