Added attribute unused
Added _GNU_SOURCE for strndup