Bring mpfr backend into line with Boost.Math's requirements. Fix input streaming. Add MPQ support. Mostly fix gcc compiler issues.