Fixed detection of iconv and gettext libraries.