fix a bug in mpir, by patching.

See https://groups.google.com/forum/?hl=en&fromgroups=#!topic/mpir-devel/oLk3gMULxu0