Added gflags && multiple-repository support