Fix using add/sub functions in C++ wrapper