Fix: solaris: Allow compilation when dirent.d_type is not available