Add dynamic stub for C++