add gflags
add a test flag for pagerank test
fix windows building for gflags