improve the autoconf warning for broken readdir