only take real component of sqrtm for quad_form
Merge pull request #34 from aspicer/master

quad_form fails for certain matrices