[demos] use pkg-config in build script of minimal_cpp_demo