build: faster check for standard C++ headers.