fstrm_capture: Include <sys/stat.h> for the file mode bits