Added <sys/file.h> include to allow trunk to compile. Hope this doesn't louse thing up.