Fixed missing return from some virtual functions on C++ bindings.