Imported gmp 5.1.3
Don't define localeconv() on MinGW. Fixes build failure.

The localeconv() function is exported from the msvcrt.dll, so redefining
it results in multiple definition link error.