Fix compilation bugs with trace_quad_form and trace_gen_quad_form.
Use trace_quad_form in multi_normal_prec.