Revert "detect_cxx_stdlibs: ignore executables."

This reverts commit 1cd636d368c66d1346adc1c38633c8f204c759f4.