samples/cpp/matching_to_many_images.cpp allow the use of SIFT and SURF as indicated in the help text.

Following the instructions in the help text results in a runtime error.
There are two ways of solving this. Either include the nonfree modules of
OpenCV, or change the help text to use only free Feature Detectors.
I chose the first option.