Make is_linklocal case-insensitive and fix #3433