Add MPFR as a dependency
Fix type promotion issues