Backport fix for mxcl/homebrew#21259 to gmp4.

Closes #225.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>