common: Add missing dirent.h header

This caused build failures on some non-Fedora systems.