Fix the test for Linux or NetBSD to not add -liconv
fix 244e856e9ff23bbb855e4e6b2d22d7cb9856a632 which broke on FreeBSD