Rename quad function to quadr to avoid clash with Solaris quad typedef