some libintl and libiconv cleanups + non-linux fixes