build: Require mpfr.h

The MPFR library is a requirement, but since it does not ship with a
pkg-config file, we need to do a check on the header.

https://bugzilla.gnome.org/show_bug.cgi?id=741880