define _GNU_SOURCE for strnlen()

define _GNU_SOURCE for strnlen(), otherwise string.h may hide its prototype. (seen with glibc-2.8.)