Require sys/types.h for dev_t unconditionally.
Fixes a build error with musl libc. Turns out this is the required
header for dev_t, and not just for FreeBSD. That it works without on
glibc is just an accident.
Differential Revision: https://phabricator.kde.org/D6596