Include sys/stat.h for mkdir() on FreeBSD as well

Fixes a warning actually