Fix do_bfgs_optimize.hpp to pass header tests.