Since not all file systems support d_type, I made its static fallback dynamic
Merge pull request #38 from arpa2/dtype4jakob

Since not all file systems support d_type, I made its static fallback dynamic