warn on linking of external functions when they have non-matching types