Apply patch to compile gettext on osx.
Merge pull request #911 from cms-sw/patch_gettext_71X

Apply patch to compile gettext on osx.