fix static link to iconv for mingw builds