Add optional dependency on math/gmp and disable gmp support properly when it's not needed. PR: ports/146027 Reported by: Craig Leres <leres at ee.lbl.gov>