Fixed cpp and _hacked_ SimpleView to make it work cross-target