define _GNU_SOURCE for strnlen()