fix linking error
optimize Fit::compute_derivatives_for() a little bit