update findgflags, thanks to ceres-solver guys