Fix errors in example (samples/cpp/intelperc_capture.cpp)