add gflags support.