Fix C++ lib sample