improve glog building a bit, still doesn't work if gflags already installed