fix linking to iconv
Detects if libiconv is in a separate lib or if it's inside of libc