Small improvement to SyncDiagram. Also enabled -ffast-math.