Fix a problem with configure on *BSD systems. Make sure we add -liconv etc