Fix compilation errors on flow ksync mirror code