Provide a similar list of options to probes as is given to code

When testing if a small mock program compiles, it should be given the same options that are normally written to config.h; otherwise the mock may fail unnecessarily (as was the case on systems without nullptr-compliant compiler), or the mock may succeed but the library fail.