Switch to standard autoconf macro for checking d_type field in struct dirent.