FL-507: fix mpfr detection