Add options to measure direct and synchronous I/O

These commits add options to measure direct and synchronous I/O using the open flags O_SYNC, O_DSYNC and O_DIRECT. Since O_DSYNC and O_DIRECT are Linux only, these options are no-ops on OSX.