Bugfix GMP MPFR etc

this diff should make them buildable on macosx etc.