Fix compile errors with syncing.