C++ stdlib check: don't check executables for deps

This avoids some possible false positives, as happens with, e.g., qt4.